/**
 * @author rxliuli
 */
const app = new Vue({
    el: '#app',
    data() {
        return {
            data: [],
            columns: [
                new TableColumn({prop: 'name', title: '网卡名称'}),
                // new TableColumn({prop: 'type', title: '网卡类型'}),
                new TableColumn({
                    prop: 'status',
                    title: '状态',
                    formatter: fieldFormatter.facade(fieldFormatter.networkManager.statusMap),
                }),
                new TableColumn({prop: 'ip', title: 'IP地址'}),
                new TableColumn({prop: 'subnetMask', title: '子网掩码'}),
                new TableColumn({prop: 'gateway', title: '网关'}),
                // new TableColumn({prop: 'operating', title: '操作', customComponent: true}),
            ],
        }
    },
    methods: {
        viewUpdate(row) {
            forward('/network-config/modify/admin_interface_modify', row)
        },
    },
    computed: {},
    async mounted() {
        this.data = await networkManagerApi.listForAll();
    },
})